package collection;

import java.util.Collection;

public class NewForDemo {
    public static void main(String[] args) {
        String[] strs = {"one","two","three","four","five"};
        for (String s : strs) {
            System.out.println(s);
        }
        for (int i = 0; i < strs.length; i++) {
            System.out.println(strs[i]);
        }
        Collection<String> c = new java.util.ArrayList<>();
        c.add("one");
        c.add("two");
        c.add("three");
        c.add("four");
        c.add("five");
        for (String s : c) {
            System.out.println(s);
        }
    }
}
